package com.xiaomi.eco.dal.res;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@lombok.Data
@ToString
public class TaskListRes {
    private int code;
    private TaskListData data;
    private String msg;


    @lombok.Data
    @ToString
    public static class TaskListData {
        @JsonProperty("tasklist")
        private TaskList taskList;

        @lombok.Data
        @ToString
        public static class TaskList {
            private long created_at;
            private SectionsRes.SectionData.Section.SectionCreator creator;
            private String guid;
            private List<TaskListCreator.TaskListMember> members;
            private String name;
            private TaskListCreator.TaskListMember.TaskListOwner owner;
            private long updated_at;
            private String url;


            @lombok.Data
            @ToString
            public static class TaskListCreator {
                private String id;
                private String type;


                @lombok.Data
                @ToString
                public static class TaskListMember {
                    private String id;
                    private String role;
                    private String type;


                    @lombok.Data
                    @ToString
                    public static class TaskListOwner extends TaskListCreator {
                        private String role;
                    }
                }
            }
        }
    }
}
